package com.application.module_chat2.manager;

/**
 * Created by lixuce on 2019/8/9.
 * 当前正在和谁聊天
 */
public class CurrentId {
    private String uId = "";

    private CurrentId() {

    }

    private static class Inner {
        private static CurrentId currentId = new CurrentId();
    }

    public static CurrentId getInstance() {
        return Inner.currentId;
    }

    //设置当前正在聊天的人的id
    public void setCurrentChatID(String uid) {
        this.uId = uid;
    }

    public void clearCurrentChatID() {
        this.uId = "";
    }

    //获取当前正在聊天的人的id
    public String getCurrentChatID() {
        return uId;
    }
}
